Skip to content

Conversation

@TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented May 4, 2025

Surpasses #56

Closes #39

@TomasVotruba TomasVotruba changed the title mbolli/main [tests] Add fixture with nullable param May 4, 2025
static public function run(): void
{
$skipDateTimeMix = new ExplicitlyNullableParams();
$skipDateTimeMix->test(false);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually expected, as only bool value is passed. Never null

If null is passed as well, there is no error 👍

@TomasVotruba TomasVotruba merged commit a7fa1c1 into main May 4, 2025
6 checks passed
@TomasVotruba TomasVotruba deleted the mbolli/main branch May 4, 2025 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NarrowPublicClassMethodParamTypeRule: conflicts with explicitly nullable types in PHP 8.4

3 participants